<script>
$(document).ready(function() {
	<?php
	if ($updated == 1) echo 'showNoti("New_module: '.$name.'", "Thêm mới new_module thành công!", "Ok");';
    if ($failed == 1) echo 'showNoti("New_module: '.$name.'", "Cập nhập new_module thất bại!", "Err");';
	?>
});
</script>
<?php echo module_open(); ?>
<tr class="nodrop">
    <?php if ($GLOBALS['per']['del']) echo '<td class="head center" width="1%"><input type="checkbox" class="checkAll" /></td>'; ?>
    <td class="head center" width="2%"><?php echo create_sort('id') ?>#</td>
    <td class="head" width="30%">Sample field</td>

    <td class="head center" width="1%">&nbsp;</td>
</tr>
<?php
if (count($article_categoriesphp) && is_array($article_categoriesphp))
{
    $i = 1;
    foreach ($article_categoriesphp as $data)
    {
?>
<tr class="highlight<?php echo ($data['isnew'] ? ' table-flag-red' : '') ?>" id="<?php echo $data['id'] ?>" name="<?php echo $data['name_vn'] ?>">
    <?php if ($GLOBALS['per']['del']) echo '<td class="fr center">'.sel_item($data['id']).'</td>'; ?>
    <td class="fr center"><?php echo stt($data['id'], $GLOBALS['var']['rowstart'] + $i++) ?></td>
    <td class="fr"><a href="<?php echo current_url().'/update/'.$data['id'].$uri_str ?>">Sample field</a></td>

    <td class="fr center" nowrap="nowrap">
        <?php if ($GLOBALS['per']['edit']) echo edit_alink('', current_url().'/update/'.$data['id'].$uri_str, 'hide480'); ?>
        <?php if ($GLOBALS['per']['del']) echo del_restore_link($data['id'], $data['deleted']); ?>
    </td>
</tr>
<?php
    }
}
else
{
    echo no_data_mes(3);
}
echo module_close();
?>